package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.xiuxian.config.*;
import com.yanqu.road.entity.activity.xiuxian.data.*;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.LinkedList;
import java.util.List;
import java.util.Map;

public class XiuXianActivityBusiness {

    public static CrossXiuXianPvpData getCrossXiuXianPvpData(int activityId) {
        return DaoHelper.getCrossXiuXianPvpDataDaoImpl().getCrossXiuXianPvpData(activityId);
    }

    public static boolean addCrossXiuXianPvpData(CrossXiuXianPvpData data) {
        return DaoHelper.getCrossXiuXianPvpDataDaoImpl().add(data);
    }

    public static boolean updateCrossXiuXianPvpData(CrossXiuXianPvpData data) {
        return DaoHelper.getCrossXiuXianPvpDataDaoImpl().update(data);
    }


    // 配置
    public static Map<Integer, XiuXianPvpPlaceConfig> getXiuXianPvpPlaceConfigMap(int activityId) {
        return DaoHelper.getXiuXianConfigDaoImpl().getXiuXianPvpPlaceConfigMap(activityId);
    }

    public static Map<Integer, XiuXianTripodConfig> getXiuXianTripodConfigMap(int activityId) {
        return DaoHelper.getXiuXianConfigDaoImpl().getXiuXianTripodConfigMap(activityId);
    }

    public static Map<Integer, XiuXianEquipmentConfig> getXiuXianEquipmentConfigMap(int activityId) {
        return DaoHelper.getXiuXianConfigDaoImpl().getXiuXianEquipmentConfigMap(activityId);
    }

    public static Map<Integer, XiuXianNpcConfig> getXiuXianNpcConfigMap(int activityId) {
        return DaoHelper.getXiuXianConfigDaoImpl().getXiuXianNpcConfigMap(activityId);
    }

    public static Map<Integer, XiuXianEventConfig> getXiuXianEventConfigMap(int activityId) {
        return DaoHelper.getXiuXianConfigDaoImpl().getXiuXianEventConfigMap(activityId);
    }

    public static Map<Integer, XiuXianMissionConfig> getXiuXianMissionMap(int activityId) {
        return DaoHelper.getXiuXianConfigDaoImpl().getXiuXianMissionMap(activityId);
    }

    public static Map<Integer, XiuXianStateConfig> getXiuXianStateConfigMap(int activityId) {
        return DaoHelper.getXiuXianConfigDaoImpl().getXiuXianStateConfigMap(activityId);
    }

    public static Map<Integer, XiuXianPeakConfig> getXiuXianPeakConfigMap(int activityId) {
        return DaoHelper.getXiuXianConfigDaoImpl().getXiuXianPeakConfigMap(activityId);
    }

    public static Map<Integer, Map<Integer, XiuXianUpgradeConfig>> getXiuXianUpgradeConfigMap(int activityId) {
        return DaoHelper.getXiuXianConfigDaoImpl().getXiuXianUpgradeConfigMap(activityId);
    }

    public static Map<Long, CrossXiuXianPvpUserData> getCrossXiuXianPvpUserDataMap(int activityId) {
        return DaoHelper.getCrossXiuXianPvpUserDataDaoImpl().getCrossXiuXianPvpUserDataMap(activityId);
    }

    public static boolean addCrossXiuXianPvpUserData(CrossXiuXianPvpUserData data) {
        return DaoHelper.getCrossXiuXianPvpUserDataDaoImpl().add(data);
    }

    public static boolean updateCrossXiuXianPvpUserData(CrossXiuXianPvpUserData data) {
        return DaoHelper.getCrossXiuXianPvpUserDataDaoImpl().update(data);
    }

    public static Map<Integer, CrossXiuXianPvpCampData> getCrossXiuXianPvpCampDataMap(int activityId) {
        return DaoHelper.getCrossXiuXianPvpCampDataDaoImpl().getCrossXiuXianPvpUserDataMap(activityId);
    }

    public static boolean addCrossXiuXianPvpCampData(CrossXiuXianPvpCampData data) {
        return DaoHelper.getCrossXiuXianPvpCampDataDaoImpl().add(data);
    }

    public static boolean updateCrossXiuXianPvpCampData(CrossXiuXianPvpCampData data) {
        return DaoHelper.getCrossXiuXianPvpCampDataDaoImpl().update(data);
    }

    public static Map<Integer, CrossXiuXianPvpPlaceData> getCrossXiuXianPvpPlaceDataMap(int activityId) {
        return DaoHelper.getCrossXiuXianPvpPlaceDataDaoImpl().getCrossXiuXianPvpPlaceDataMap(activityId);
    }

    public static boolean addCrossXiuXianPvpPlaceData(CrossXiuXianPvpPlaceData data) {
        return DaoHelper.getCrossXiuXianPvpPlaceDataDaoImpl().add(data);
    }

    public static boolean updateCrossXiuXianPvpPlaceData(CrossXiuXianPvpPlaceData data) {
        return DaoHelper.getCrossXiuXianPvpPlaceDataDaoImpl().update(data);
    }

    public static XiuXianUserData getXiuXianUserData(int activityId, long userId) {
        return DaoHelper.getXiuXianUserDataDaoImpl().getXiuXianUserData(activityId,userId);
    }

    public static boolean addXiuXianUserData(XiuXianUserData data) {
        return DaoHelper.getXiuXianUserDataDaoImpl().add(data);
    }

    public static boolean updateXiuXianUserData(XiuXianUserData data) {
        return DaoHelper.getXiuXianUserDataDaoImpl().update(data);
    }

    public static Map<Long, XiuXianUserMountAllotData> getXiuXianUserMountAllotData(int activityId) {
        return DaoHelper.getXiuXianUserMountAllotDataDaoImpl().getXiuXianUserMountAllotData(activityId);
    }

    public static boolean addXiuXianUserMountAllotData(XiuXianUserMountAllotData data) {
        return DaoHelper.getXiuXianUserMountAllotDataDaoImpl().add(data);
    }

    public static boolean updateXiuXianUserMountAllotData(XiuXianUserMountAllotData data) {
        return DaoHelper.getXiuXianUserMountAllotDataDaoImpl().update(data);
    }

    public static Map<Integer, XiuXianMissionData> getXiuXianMissionData(int activityId, long userId) {
        return DaoHelper.getXiuXianUserMissionDataDaoImpl().getXiuXianMissionData(activityId,userId);
    }

    public static boolean addXiuXianUserMissionData(XiuXianMissionData data) {
        return DaoHelper.getXiuXianUserMissionDataDaoImpl().add(data);
    }

    public static boolean updateXiuXianMissionUserData(XiuXianMissionData data) {
        return DaoHelper.getXiuXianUserMissionDataDaoImpl().update(data);
    }

    public static List<XiuXianUserBehaviorData> getXiuXianUserBehaviorData(int activityId, long userId) {
        return DaoHelper.getXiuXianUserBehaviorDataDaoImpl().getXiuXianUserBehaviorData(activityId,userId);
    }

    public static boolean addXiuXianUserBehaviorData(XiuXianUserBehaviorData data) {
        return DaoHelper.getXiuXianUserBehaviorDataDaoImpl().add(data);
    }

    public static boolean updateXiuXianBehaviorUserData(XiuXianUserBehaviorData data) {
        return DaoHelper.getXiuXianUserBehaviorDataDaoImpl().update(data);
    }

    public static Map<Integer, CrossXiuXianPvpEndRecord> getCrossXiuXianPvpEndRecordMap(int activityId) {
        return DaoHelper.getCrossXiuXianPvpEndRecordDaoImpl().getCrossXiuXianPvpEndRecordMap(activityId);
    }

    public static boolean addCrossXiuXianPvpEndRecord(CrossXiuXianPvpEndRecord data) {
        return DaoHelper.getCrossXiuXianPvpEndRecordDaoImpl().add(data);
    }

    public static boolean updateCrossXiuXianPvpEndRecord(CrossXiuXianPvpEndRecord data) {
        return DaoHelper.getCrossXiuXianPvpEndRecordDaoImpl().update(data);
    }

    public static LinkedList<CrossXiuXianPvpNoticeData> getCrossXiuXianPvpNoticeDataList(int activityId, int round, int campId, int limit) {
        return DaoHelper.getCrossXiuXianPvpNoticeDataDaoImpl().getCrossXiuXianPvpNoticeDataList(activityId, round, campId, limit);
    }

    public static boolean addCrossXiuXianPvpNoticeData(CrossXiuXianPvpNoticeData data) {
        return DaoHelper.getCrossXiuXianPvpNoticeDataDaoImpl().add(data);
    }

    public static List<CrossXiuXianServerScoreData> getCrossXiuXianServerScoreDataList(int activityId) {
        return DaoHelper.getCrossXiuXianServerScoreDataDaoImpl().getCrossXiuXianServerScoreDataList(activityId);
    }

    public static boolean addCrossXiuXianServerScoreData(CrossXiuXianServerScoreData data) {
        return DaoHelper.getCrossXiuXianServerScoreDataDaoImpl().add(data);
    }

    public static boolean updateCrossXiuXianServerScoreData(CrossXiuXianServerScoreData data) {
        return DaoHelper.getCrossXiuXianServerScoreDataDaoImpl().update(data);
    }

    public static Map<Long, CrossXiuXianMountAllotData> getCrossXiuXianMountAllotDataMap(int activityId) {
        return DaoHelper.getCrossXiuXianMountAllotDataDaoImpl().getCrossXiuXianMountAllotData(activityId);
    }

    public static boolean addCrossXiuXianMountAllotData(CrossXiuXianMountAllotData data) {
        return DaoHelper.getCrossXiuXianMountAllotDataDaoImpl().add(data);
    }

    public static boolean updateCrossXiuXianMountAllotData(CrossXiuXianMountAllotData data) {
        return DaoHelper.getCrossXiuXianMountAllotDataDaoImpl().update(data);
    }

}
